home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-30 | 1.1 KB | 60 lines | [TEXT/ISLP] |
- !
- ! InterSLIP gateway script for NETCOM TIA
- !
- @originate
- matchclr
- matchstr 1 1 "ogin:" ! match the "login:" prompt
- matchread 100
- note "no login prompt; trying again"
- write "\13"
- matchclr
- matchstr 1 1 "ogin:" ! match the "login:" prompt
- matchread 200
- note "no login prompt; trying once more"
- write "\13"
- matchclr
- matchstr 1 1 "ogin:" ! match the "login:" prompt
- matchread 300
- note "no login prompt; giving up"
- pause 60
- exit -1
- !
- @label 1
- note "Sending user name"
- write "^5\10"
- matchclr
- matchstr 1 2 "assword:" ! match the "password:" prompt
- matchread 50
- note "no password prompt"
- pause 60
- exit -1
- !
- @label 2
- note "Sending password"
- write "^6\10"
- pause 20
- note "Awaiting shell prompt"
- matchclr
- matchstr 1 5 "% " ! match the shell prompt
- matchread 120
- note "No shell prompt; trying again"
- write "\13"
- matchclr
- matchstr 1 5 "% " ! match the shell prompt
- matchread 120
- note "No shell; giving up"
- exit -1
- !
- @label 5
- note "Starting TIA"
- write "tia\13" ! start The Internet Adapter
- matchclr
- matchstr 1 6 "Ready"
- matchread 200
- note "TIA not responding"
- exit -1
- !
- @label 6
- note "OK"
- exit 0
-